<?php header("Content-type:text/html;charset=utf-8"); ?>
<html>
<head>
<?php $this->import('title');?>
</head>
<body>
<a href="admin.php?m=goods&a=add" >添加新商品</a>
<table>
<tr>
<th>商品名称</th>
<th>售价</th>
<th>单位</th>
<th>重量</th>
<th>运费</th>
<th>URL名称</th>
<th>关键字</th>
<th>页面描述</th>
<th>操作</th>
</tr>
<?php foreach($this->goodsList as $goods):?>
<tr>
<td><?php echo $goods['goodsName']?></td>
<td><?php echo trim($goods['price'], '0.')?></td>
<td><?php echo $goods['unit']?></td>
<td><?php echo trim($goods['weight'], '0.')?></td>
<td><?php echo trim($goods['freight'], '0.')?></td>
<td><?php echo $goods['urlName']?></td>
<td><?php echo $goods['keyWords']?></td>
<td><?php echo $goods['desc']?></td>
<td><a href="admin.php?m=goods&a=modify&id=<?php echo $goods['id']?>">修改</a></td>
</tr>
<?php endforeach;?>

</table>

</body>
</html>